package com.tedu.egspringbootmvc.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class UserArticleDTO {
    @NotBlank(message = "标题不能为空")
    @ApiModelProperty(value = "文章标题",required = true,example = "标题")
    private String title;
    @NotBlank(message = "内容不能为空")
    @ApiModelProperty(value = "文章内容",required = true,example = "内容")
    private String content;
}
